package com.cloud.businesscomment.service.serviceImpl;

import com.cloud.businesscomment.dao.Business_orderMapper;
import com.cloud.businesscomment.service.BusinessOrderService;
import com.cloud.commonapi.model.Business_order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 陈楚城
 * @date 2019/9/30 15:05
 */
@Service
public class BusinessOrderServiceImpl implements BusinessOrderService {

    @Autowired
    private Business_orderMapper business_orderMapper;
    @Override
    public int addorder(Business_order business_order) {
        return business_orderMapper.insert(business_order);
    }

    @Override
    public Business_order getorder(Integer id) {
        return business_orderMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Business_order> list(Integer accountId) {
        return business_orderMapper.list(accountId);
    }

    @Override
    public int updateorder(Business_order business_order) {
        return business_orderMapper.updateByPrimaryKeySelective(business_order);
    }
}
